package com.jy.api.dao;

import com.jy.api.domain.CashCoupon;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2019/1/18.
 */
public interface CashCouponDao extends CrudRepository<CashCoupon, Integer> {


    List<CashCoupon> findByStoreIdAndEnabledOrderByAddTimeDesc(String storeId,boolean enabled);

    List<CashCoupon> findByStoreIdAndEnabledAndUseOrderByAddTimeDesc(String storeId,boolean enabled,boolean use);






}
